package com.mayisoftware.mayioa.business.personal.api.domain;

import org.apache.commons.lang3.StringUtils;

import java.util.List;

/**
 * 个人信息概览
 */
public class PersonalOV {

    /**
     * 用户名
     */
    private String userName;

    /**
     * 用户工号
     */
    private String userId;

    /**
     * 是否骨干
     */
    private String isBackBone;

    /**
     * 成为骨干时间
     */
    private String inTime;

    /**
     * 退出骨干时间
     */
    private String outTime;

    /**
     * 加入方式
     */
    private String inType;

    /**
     * 退出方式
     */
    private String outType;

    /**
     * 参与计划个数
     */
    private String planNum;
    /**
     * 最近计划排名
     */
    private String latestPlanRank;


    /**
     * 个人参加计划详情
     */
    private List<PersonalDetail> details;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getIsBackBone() {
        return isBackBone;
    }

    public void setIsBackBone(String isBackBone) {
        this.isBackBone = isBackBone;
    }

    public String getInTime() {
        return inTime;
    }

    public void setInTime(String inTime) {
        this.inTime = inTime;
    }

    public String getOutTime() {
        return outTime;
    }

    public void setOutTime(String outTime) {
        this.outTime = outTime;
    }

    public String getInType() {
        return inType;
    }

    public void setInType(String inType) {
        this.inType = inType;
    }

    public List<PersonalDetail> getDetails() {
        return details;
    }

    public void setDetails(List<PersonalDetail> details) {
        this.details = details;
    }


    public String getOutType() {
        return outType;
    }

    public void setOutType(String outType) {
        this.outType = outType;
    }

    public String getPlanNum() {
        return planNum;
    }

    public void setPlanNum(Integer planNum) {
        if(planNum == null){
            this.planNum = StringUtils.EMPTY;
            return;
        }
        this.planNum = planNum.toString();
    }

    public String getLatestPlanRank() {
        return latestPlanRank;
    }

    public void setLatestPlanRank(Integer latestPlanRank) {
        if(latestPlanRank == null){
            this.latestPlanRank = StringUtils.EMPTY;
            return;
        }
        this.latestPlanRank = latestPlanRank.toString();
    }
}
